package guiLayer;

import java.awt.BorderLayout;
import java.awt.Font;

import javax.swing.JLabel;
import javax.swing.JPanel;
import javax.swing.JTabbedPane;
import javax.swing.border.EmptyBorder;

public class ItemMainPanel extends JPanel {

	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;

	/**
	 * Create the panel.
	 */
	public ItemMainPanel() {
		setBorder(new EmptyBorder(10, 10, 10, 10));
		setLayout(new BorderLayout(10, 10));

		JPanel titleNorth = new JPanel();
		add(titleNorth, BorderLayout.NORTH);
		titleNorth.setLayout(new BorderLayout(0, 0));

		JLabel lblTitle = new JLabel("VARE H\u00C5NDTERING");
		lblTitle.setFont(new Font("Tahoma", Font.PLAIN, 16));
		titleNorth.add(lblTitle);

		JTabbedPane itemTabs = new JTabbedPane(JTabbedPane.TOP);
		add(itemTabs);

		JPanel tab1 = new ItemTab1();
		itemTabs.addTab("Ny vare", null, tab1, "Her oprettes der nye varer");
		
		JPanel tab2 = new ItemTab2();
		itemTabs.addTab("Eksisterende varer", null, tab2, "Her findes de eksisterende varer. De kan redigeres og slettes.");

	}

}
